<template>
  <div id="app">
    <div class="show-loading" v-show = "isLoading">
      <van-loading class="loading"/>
    </div>
    <router-view/>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'App',
  computed: {
    ...mapState({
      isLoading: state => state.loading.isLoading
    })
  },
}
</script>

<style lang="less">
@import './assets/styles/index.less';
ol, ul {
		list-style: none;
		padding: 0;
}
body{
	line-height: 24px;
	font: 14px Helvetica Neue, Helvetica, PingFang SC, \5FAE\8F6F\96C5\9ED1, Tahoma, Arial, sans-serif;
	background: #FFFFFF;
}
#app {
		// background: url(./assets/img/login_bg.png) no-repeat bottom center;
		// background-size: 100% auto;
}
.show-loading{
  width: 100%;
  height: 100%;
  // background: rgba(44, 44, 44, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 998;
  .loading{
    top: 40%;
    left: 40%;
    width: 20%;
    height: 20%;
  }

}
</style>
